/*
 *************************************************************************
 *西瑞克斯研发管理系统
 *版 本: 1.0   
 *日 期：02/16/2012    
 *作 者： 王浩 QQ：873987060   
 *************************************************************************   
 */

package com.application.yffeereimbur.struts.form;

import org.apache.commons.lang.builder.ReflectionToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;
import javax.servlet.http.HttpServletRequest;
import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionMapping;

import java.math.BigDecimal;
import java.util.List;
import com.manager.commons.StringUtil;
import com.application.yffeereimbur.entity.YfFeeReimbur;
import java.util.Date;

/**
 * 
 * Description: YfFeeReimburForm Struts Action Form<br />
 * 
 * Version:V0.1<br />
 * 
 * Author: 王浩 QQ：873987060 <br />
 * 
 * History: <br />
 * 
 * 02/16/2012 .
 * 
 */
public class YfFeeReimburForm extends ActionForm {

	/** serialVersionUID */
	protected static final long serialVersionUID = -1L;

	public YfFeeReimburForm() {

	}

	private String id;

	private String applyNo;

	private String projectNo;

	private Date applyDate;

	private BigDecimal applyMoney;

	private String summary;

	private Long billsNum;

	private Long feeType;

	private Long auditStatus;

	private String processId;

	private String org;

	private String operateid;

	private Date createDate;

	private String ids;
	
	private String projectName;

	private String projectOrg;

	private Long projectType;

	private String examineFlag;

	private String examineOption;

	private String workItemId;

	private String applyDateStr;
	
	private String rname;
	
	private Long year;
	
	private String rname2;

	public Long getYear() {
		return year;
	}

	public void setYear(Long year) {
		this.year = year;
	}

	public String getRname() {
		return rname;
	}

	public void setRname(String rname) {
		this.rname = rname;
	}

	/**
	 * @return Returns the ApplyDate.
	 */
	public String getApplyDateStr() {
		String re = "";
		if (this.applyDate == null) {
			return re;
		}
		try {
			re = StringUtil.dateToString(this.applyDate);
		} catch (Exception e) {
			e.printStackTrace();
		}
		return re;
	}

	/**
	 * @param ${field.propertyName}
	 *            Set the ${field.propertyName}.
	 */
	public void setApplyDateStr(String applyDateStr) {
		this.applyDateStr = applyDateStr;
		if (this.applyDateStr != null && !"".equals(this.applyDateStr)) {
			try {
				this.applyDate = StringUtil.stringToDate(this.applyDateStr);
			} catch (Exception e) {
				e.printStackTrace();
			}
		}

	}

	/**
	 * @return Returns the Id
	 */
	public String getId() {
		return this.id;
	}

	/**
	 * @param id
	 *            Set the id.
	 */
	public void setId(String id) {
		this.id = id;
	}

	/**
	 * @return Returns the ApplyNo
	 */
	public String getApplyNo() {
		return this.applyNo;
	}

	/**
	 * @param applyNo
	 *            Set the applyNo.
	 */
	public void setApplyNo(String applyNo) {
		this.applyNo = applyNo;
	}

	/**
	 * @return Returns the ProjectNo
	 */
	public String getProjectNo() {
		return this.projectNo;
	}

	/**
	 * @param projectNo
	 *            Set the projectNo.
	 */
	public void setProjectNo(String projectNo) {
		this.projectNo = projectNo;
	}

	/**
	 * @return Returns the ApplyDate
	 */
	public Date getApplyDate() {
		return this.applyDate;
	}

	/**
	 * @param applyDate
	 *            Set the applyDate.
	 */
	public void setApplyDate(Date applyDate) {
		this.applyDate = applyDate;
	}

	/**
	 * @return Returns the ApplyMoney
	 */
	public BigDecimal getApplyMoney() {
		return this.applyMoney;
	}

	/**
	 * @param applyMoney
	 *            Set the applyMoney.
	 */
	public void setApplyMoney(BigDecimal applyMoney) {
		this.applyMoney = applyMoney;
	}

	/**
	 * @return Returns the Summary
	 */
	public String getSummary() {
		return this.summary;
	}

	/**
	 * @param summary
	 *            Set the summary.
	 */
	public void setSummary(String summary) {
		this.summary = summary;
	}

	/**
	 * @return Returns the BillsNum
	 */
	public Long getBillsNum() {
		return this.billsNum;
	}

	/**
	 * @param billsNum
	 *            Set the billsNum.
	 */
	public void setBillsNum(Long billsNum) {
		this.billsNum = billsNum;
	}

	/**
	 * @return Returns the FeeType
	 */
	public Long getFeeType() {
		return this.feeType;
	}

	/**
	 * @param feeType
	 *            Set the feeType.
	 */
	public void setFeeType(Long feeType) {
		this.feeType = feeType;
	}

	/**
	 * @return Returns the AuditStatus
	 */
	public Long getAuditStatus() {
		return this.auditStatus;
	}

	/**
	 * @param auditStatus
	 *            Set the auditStatus.
	 */
	public void setAuditStatus(Long auditStatus) {
		this.auditStatus = auditStatus;
	}

	/**
	 * @return Returns the ProcessId
	 */
	public String getProcessId() {
		return this.processId;
	}

	/**
	 * @param processId
	 *            Set the processId.
	 */
	public void setProcessId(String processId) {
		this.processId = processId;
	}

	/**
	 * @return Returns the Org
	 */
	public String getOrg() {
		return this.org;
	}

	/**
	 * @param org
	 *            Set the org.
	 */
	public void setOrg(String org) {
		this.org = org;
	}

	/**
	 * @return Returns the Operateid
	 */
	public String getOperateid() {
		return this.operateid;
	}

	/**
	 * @param operateid
	 *            Set the operateid.
	 */
	public void setOperateid(String operateid) {
		this.operateid = operateid;
	}

	/**
	 * @return Returns the CreateDate
	 */
	public Date getCreateDate() {
		return this.createDate;
	}

	/**
	 * @param createDate
	 *            Set the createDate.
	 */
	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	private List<YfFeeReimbur> yfFeeReimburList;

	/**
	 * @return the yffeereimburformList
	 */
	public List<YfFeeReimbur> getYfFeeReimburList() {
		return yfFeeReimburList;
	}

	/**
	 * @param yfFeeReimburList
	 *            the yffeereimburformList to set
	 */
	public void setYfFeeReimburList(List<YfFeeReimbur> yfFeeReimburList) {
		this.yfFeeReimburList = yfFeeReimburList;
	}

	public String getIds() {
		return ids;
	}

	public void setIds(String ids) {
		this.ids = ids;
	}

	/**
	 * Method validate
	 * 
	 * @param mapping
	 * @param request
	 * @return ActionErrors
	 */
	public ActionErrors validate(ActionMapping mapping,
			HttpServletRequest request) {
		// TODO Auto-generated method stub
		return null;
	}

	/**
	 * Method reset
	 * 
	 * @param mapping
	 * @param request
	 */
	public void reset(ActionMapping mapping, HttpServletRequest request) {
		// TODO Auto-generated method stub
	}

	public String toString() {
		return ReflectionToStringBuilder.toString(this,
				ToStringStyle.MULTI_LINE_STYLE);
	}

	public String getProjectName() {
		return projectName;
	}

	public void setProjectName(String projectName) {
		this.projectName = projectName;
	}

	public String getProjectOrg() {
		return projectOrg;
	}

	public void setProjectOrg(String projectOrg) {
		this.projectOrg = projectOrg;
	}

	public Long getProjectType() {
		return projectType;
	}

	public void setProjectType(Long projectType) {
		this.projectType = projectType;
	}

	public String getExamineFlag() {
		return examineFlag;
	}

	public void setExamineFlag(String examineFlag) {
		this.examineFlag = examineFlag;
	}

	public String getExamineOption() {
		return examineOption;
	}

	public void setExamineOption(String examineOption) {
		this.examineOption = examineOption;
	}

	public String getWorkItemId() {
		return workItemId;
	}

	public void setWorkItemId(String workItemId) {
		this.workItemId = workItemId;
	}

	public String getRname2() {
		return rname2;
	}

	public void setRname2(String rname2) {
		this.rname2 = rname2;
	}
}
